package cn.kfu.dao;

import cn.kfu.model.User;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserDao extends PagingAndSortingRepository<User, Integer> {

    List<User> findByCellphone(String cellphone);

    List<User> findByEmail(String email);
}
